# 创建静态库（根据需求也可用SHARED创建动态库）
add_library(processor_lib STATIC processor.cpp)

# 将头文件目录设置为PUBLIC，这样链接此库的目标会自动获得头文件路径
target_include_directories(processor_lib PUBLIC
        ${CMAKE_CURRENT_SOURCE_DIR}
)

# 设置库的编译选项
target_compile_features(processor_lib PRIVATE cxx_std_20)
